<template>
    <div class="bigdata flex-col">
        <Header></Header>
        <div class="flex-1 content flex-row bigdata_body">
            <div class="flex-1 flex-col">
                <div class="flex-1  box">
                    <div class="bd flex-col">
                        <div class="hd flex-row">
                            <div class="title">
                                <img src="./static/bigdata/projuct.png" alt="">
                            </div>
                        </div>
                        <div class="flex-1 flex-col">
                            <!-- 设备信息 -->
                          <div>
                            <div class="info">
                                <div class="info_title">{{device_info.title}}/{{device_info.group_title}}</div>
                                <div class="info_content">
                                    <div class="status">{{device_info.is_online == 20?'离线':'在线'}}</div>
                                    <div class="dl">{{device_info.yaw}}%</div>
                                    <div class="location">{{device_info.position}}</div>
                                </div>
                            </div>
                            <div class="flex-row circle_line align-center justify-center">
                                <img src="./static/bigdata/circle.png" alt="">
                                <div class="flex-1 mid_line"></div>
                                <img src="./static/bigdata/circle.png" alt="">
                            </div>
                          </div>
                          <div class="flex-1 flex-row align-center justify-center">
                            <div class="warn_bg two_bg flex-row justify-center"><div class="two_num">{{device_count.warning}}</div></div>
                            <div style="width:10%"></div>
                            <div class="relook_bg two_bg flex-row justify-center"><div class="two_num">{{device_count.playback}}</div></div>
                          </div>
                        </div>
                        <div class="flex-row">
                            <div><img src="./static/bigdata/right.png" class="rotate-180" alt=""></div>
                            <div class="flex-1"></div>
                            <div><img src="./static/bigdata/right.png" alt=""></div>
                        </div>
                    </div>
                </div>
                <div class="box" style="height:40%;">
                    <div class="bd flex-col">
                        <div class="hd flex-row">
                            <div class="title">
                                <img src="./static/bigdata/quickly.png" alt="">
                            </div>
                            <div class="flex-1"></div>
                        </div>
                        <div class="flex-1"></div>
                        <div class="flex-row">
                            <div><img src="./static/bigdata/right.png" class="rotate-180" alt=""></div>
                            <div class="flex-1"></div>
                            <div><img src="./static/bigdata/right.png" alt=""></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="content_center flex-col">
                <div class="box cg">
                    <div class="bd flex-col" style="height:100%">
                        <div class="hd flex-row align-center">
                            <div class="title">
                                <img src="./static/bigdata/pro_warn.png" alt="">
                            </div>
                        </div>
                        <div class="flex-1">
                            <!-- 设备报警 -->
                            <div class="top_view flex-row align-center justify-center">
                                <div class="warn_top">
                                    <div class="flex-row align-center" style="margin-right:-100px;">
                                        <div class="time flex-1"></div>
                                        <div class="line" style="width:20px; padding:0 10px;"></div>
                                        <div class="time flex-1"></div>
                                    </div>
                                    <div class="block flex-row align-center">
                                        <div style="font-size: 14px;">统计周期:</div>
                                        <el-date-picker class="flex-1" v-model="value1" type="monthrange" range-separator=""
                                            start-placeholder="开始月份" end-placeholder="结束月份" @blur="zqblur" value-format="yyyy-MM">
                                        </el-date-picker>
                                    </div>
                                </div>
                            </div>
                            <div class="warn_content">
                                <div class="warning_list" v-if="total>0">
                                    <div class="warning_every" v-for="(item,index) in data_list" :key="index">
                                        <div class="warning_item">
                                            <div class="flex-row" style="padding:10px 20px;">
                                                <div class="flex-1 flex-col">
                                                    <div class="flex-row" style="padding-bottom:10px; padding-top:10px;">
                                                        <img src="./static/bigdata/book.png" alt="" style="padding-right:5px;">
                                                        <div class="title">{{item.title}}/{{item.group_title}}</div>
                                                    </div>
                                                    <div class="des">{{item.content}}</div>
                                                </div>
                                                <div class="flex-col">
                                                    <div class="time">{{item.updated_at}}</div>
                                                    <div class="flex-row">
                                                        <div class="flex-1"></div>
                                                        <div class="status flex-row align-center justify-center" v-if="item.status == 10">
                                                            <img src="./static//bigdata/ok.png" alt="">
                                                            <div class="status_title">已处理</div>
                                                        </div>
                                                        <div class="status flex-row align-center justify-center" style="background:#1d62ff" v-if="item.status == 20">
                                                            <img src="./static//bigdata/ing.png" alt="">
                                                            <div class="status_title">处理中</div>
                                                        </div>
                                                        <div class="status flex-row align-center justify-center" style="background:#deaa1d" v-if="item.status == 30">
                                                            <img src="./static//bigdata/wait.png" alt="">
                                                            <div class="status_title">待处理</div>
                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <pagination v-show="total > 0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.pageSize"
                                    @pagination="getList" />
                                    <template v-if="total==0"><nodata/></template>
                            </div>
                        </div>
                        <div class="flex-row align-center">
                            <div><img src="./static/bigdata/right.png" class="rotate-180" alt=""></div>
                            <div class="flex-1"></div>
                            <div><img src="./static/bigdata/right.png" alt=""></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="flex-1 flex-col">
                <div class="flex-1 box" >
                    <div class="bd flex-col" style="height:100%">
                        <div class="hd">
                            <div class="title">
                                <img src="./static/bigdata/relook.png" alt="">
                            </div>
                        </div>
                        <div class="flex-1">
                            <div class="ck">
                                <div class="flex-row align-center ck_top justify-center">
                                    <div class="flex-row align-center" style="margin-right:-90px">
                                        <div class="time flex-1"></div>
                                        <div class="line" style="width:20px; padding:0 10px;"></div>
                                        <div class="time flex-1"></div>
                                    </div>
                                    <div class="block flex-row align-center">
                                        <div style="font-size: 14px;">统计周期:</div>
                                        <el-date-picker class="flex-1" v-model="value2" type="monthrange" range-separator=""
                                            start-placeholder="开始月份" end-placeholder="结束月份" value-format="yyyy-MM" @blur="sbblur">
                                        </el-date-picker>
                                    </div>
                                </div>
                                <div class="flex-1" style="padding:10px 0">
                                    <div class="flex-row align-center justify-center">
                                        <div class="flex-1 flex-row align-center justify-center">时间</div>
                                        <div class="flex-1 flex-row align-center justify-center">查看</div>
                                    </div>
                                </div>
                                <div class="ck_list" v-if="playTotal>0">
                                    <div class="ck_item flex-row" v-for="(item,index) in play_list" :key="index">
                                        <div class="flex-1 flex-row align-center">
                                            <img src="./static/bigdata/jsq.png" alt="" style="margin-right:5px">
                                            <div class="time">2024-12-12 14:30:54</div>
                                        </div>
                                        <div class="flex-row align-center look" style="">
                                            <img src="./static/bigdata/list_look.png" alt="" style="margin-right:5px;">
                                            <div>查看回访</div>
                                        </div>
                                    </div>
                                </div>
                                <pagination v-show="playTotal > 0" :total="playTotal" :page.sync="backListQuery.page" :limit.sync="backListQuery.pageSize"
                                    @pagination="getPlayList" />
                                    <template v-if="playTotal == 0">
                                        <nodata />
                                    </template>
                            </div>
                        </div>
                        <div class="flex-row">
                            <div><img src="./static/bigdata/right.png" class="rotate-180" alt=""></div>
                            <div class="flex-1 flex-row">
                                <div class="flex-1"></div>
                                <div></div>
                            </div>
                            <div><img src="./static/bigdata/right.png" alt=""></div>
                        </div>
                    </div>
                </div>
                <div class="box flex-1">
                    <div class="bd flex-col" style="height:100%">
                        <div class="hd">
                            <div class="title">
                                <img src="./static/bigdata/pro_location.png" alt="">
                            </div>
                        </div>
                        <div class="flex-1">
                                <div class="sd_map" style="width:100%;">
                                    <div class="echart-demo" id="demo" style="width:100%; height:100%;"></div>
                                </div>
                        </div>
                        <div class="flex-row">
                            <div><img src="./static/bigdata/right.png" class="rotate-180" alt=""></div>
                            <div class="flex-1"></div>
                            <div><img src="./static/bigdata/right.png" alt=""></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
         <!-- 修改密码 -->
         <el-dialog :visible.sync="dialogVisible" width="520px" :append-to-body="true" class="comDialog">
            <div class="content">
                <div class="flex-row header align-center ">
                    <div class="title flex-1">设备信息弹窗</div>
                    <div style="cursor: pointer;" @click="dialogVisible = false"><img style="padding-right:10px;" src="./static/bigdata/close.png" alt=""></div>
                </div>
                <div class="body">
                    <div class="b_content flex-col">
                        <div class="flex-row item name"><img src="./static/bigdata/book.png" style="padding-right:5px;" alt="">设备名/设备组</div>
                        <div class="flex-row item">设备：在线</div>
                        <div class="flex-row item">电量：80%</div>
                        <div class="flex-row item">位置：山东烟台莱山</div>

                    </div>
                   <div style="width:100%;" class="flex-row align-center justify-center">
                    <span slot="footer" class="dialog-footer flex-row " >
                        <el-button class="colorBtn big flex-1" type="primary" @click="submitForm('changePassword')">确 定</el-button>
                        <el-button class="colorBtn big flex-1 ghost" @click="dialogVisible = false">取 消</el-button>
                        </span>
                   </div>
                </div>
            </div>
          </el-dialog>
    </div>
</template>
<script>
import * as echarts from 'echarts';
import 'echarts-gl';
import getPie3D from '../../utils/3DChart.js'
import shanDong from '../../utils/shandong.json'
import Pagination from '@/components/Pagination/index.vue'
import nodata from '@/components/nodata.vue'
import Header from './components/Header/index.vue'

import {
  device_info,
  warning_list,
  device_count,
  playback_list
} from "@/api/bigdata";
export default {
    components:{
        Pagination,nodata,Header
    },
    data() {
        return {
            value1: '',
            value2:'',
            total:0,
            playTotal:0,
            listQuery:{
                page:1,
                pageSize:10,
                device_id:this.$route.query.id,
                start:'',
                end:''
            },
            backListQuery:{
                page:1,
                pageSize:10,
                device_id:this.$route.query.id,
                start:'',
                end:''
            },
            dialogVisible: false,
            device_info:{},
            data_list:[],
            play_list:[],
            device_count:{}
        }
    },
    mounted() {
        device_info({id:this.$route.query.id}).then(res=>{
            this.device_info = res
            this.mapChartInit()
        })
        device_count({id:this.$route.query.id}).then(res=>{
            this.device_count = res
        })
        this.getList()
        this.getPlayList()

    },
    beforeDestroy() {
    },
    methods: {
        submitForm(){

        },
        sbblur(){
            if (this.value2.length > 0) {
                this.backListQuery.start = this.value2[0]
                this.backListQuery.end = this.value2[1]
                this.backListQuery.page = 1
                this.getPlayList()
            }
        },
        zqblur() {
            if (this.value1.length > 0) {
                this.listQuery.start = this.value1[0]
                this.listQuery.end = this.value1[1]
                this.listQuery.page = 1
                this.getList()
            }
        },
        getPlayList(){
            playback_list(this.backListQuery).then(res=>{
                this.playTotal = res.total
                this.play_list = res.data
            })
        },
        getList(){
            warning_list(this.listQuery).then(res=>{
                this.total = res.total
                this.data_list = res.data
            })
        },
        mapChartInit() {
            let that = this
            var geoCoordMap = {};
            this.$set(geoCoordMap,that.device_info.group_title,[that.device_info.map_x, that.device_info.map_y])
            // 将坐标与值对应并反映在地图上
            var convertData = function (data) {
                var res = [];
                for (var i = 0; i < data.length; i++) {
                    var geoCoord = geoCoordMap[data[i].name];
                    if (geoCoord) {
                        res.push({
                            name: data[i].name,
                            value: geoCoord.concat(data[i].value)
                        });
                    }
                }
                return res;
            };
            //获取echart对象
            let dom = document.getElementById('demo')
            if (dom) {
                //初始化
                let myEchart = echarts.init(dom)
                //注册地图
                echarts.registerMap('山东', shanDong)
                let option = {
                    series: [{
                        // tooltip: {
                        //     trigger: 'item',
                        // },
                        name: '山东省数据',
                        type: 'effectScatter',
                        map: '山东', // 自定义扩展图表类型
                        coordinateSystem: 'geo',
                        showLegendSymbol: true, // 存在legend时显示
                        label: { // 文字
                            // show: true,
                            // color: '#fff',
                            // fontSize: 10
                        },
                        itemStyle: { // 地图样式
                            areaColor: 'rgb(20, 112, 214)',  //区域颜色
                            // borderColor: '#ffffff',  //边框颜色
                            // borderWidth: 1,
                            color: 'red'
                        },
                        symbol: 'circle',
                        symbolSize: function (val) {
                            if (parseInt(val[2] / 10) > 10) {
                                return 10;
                            } else {
                                return val[2] / 10;
                            }  // 根据范围映射得到symbolSize值
                        },
                        emphasis: { // 鼠标移入时显示的默认样式
                            // itemStyle: {
                            //     areaColor: '#ffffff',
                            //     borderColor: '#ffffff',
                            //     borderWidth: 1
                            // },
                            // label: { // 文字
                            //     show: true,
                            //     color: '#fff',
                            //     fontSize: 12,
                            //     fontWeight: 600
                            // },
                        },
                        data: convertData([
                            // {name: "滨州跨境电商产业园", value: 150},
                            // {name: "滨州数字经济产业园", value: 250},
                            { name: that.device_info.group_title, value: 350 }
                        ])
                    }],
                    geo: {
                        map: '山东',
                        label: {
                            show: true,
                            color: '#4fbfd7',
                            emphasis: {
                                show: true
                            }
                        },

                        itemStyle: {
                            normal: {
                                areaColor: '#141f51',
                                borderWidth: 1.2,//设置外层边框
                            },
                            emphasis: {
                            }
                        }
                    },
                    tooltip: {
                        trigger: 'item',
                        formatter: function (params) {
                            // 提示框外框样式及内容数据
                            // const htmlContent = `<div style="width: 236px; height: 104px; ">
                            //     <!-- 提示框顶部标题样式及数据 smsUseData.xAxis.date（标题数据）-->
                            //     <div style="color: #000000D9; border-bottom: 1px solid #F0F0F0; padding: 5px 16px;">
                            //     ${params.name}
                            //     </div>
                            //     <div style="padding: 12px 16px; position: relative; display:flex; justify-content:center; align-items:center;">
                            //         <p style="background:red;width:6px;height:6px;border-radius:3px;"></p>

                            //         <div class="flex-1"> ${params.name}</div>
                            //     </div>
                            // </div>`;
                            // return htmlContent;

                            return `<div> ${params.name}</div>`;
                        }
                    },
                }
                myEchart.setOption(option);
                window.addEventListener('resize', function () {
                    myEchart.resize();
                });
            }
        },
    },
};
</script>
<style lang="scss" scoped>
.bigdata {
    height: 100vh;
    position: relative;
    background-image: url('./static/bigdata/bg.png');
    background-position: 50% 50%;
    background-repeat: repeat;
    background-color: #080b1d;

    .content {
        //padding: 0 40px;
        width: 100%;
        color: #fff;
        margin-top: -110px;

        .content_center {
            width: 45%;
            .cg {
               // width: 100%;
                height: 100%;
                //height: 460px;
            }
            .top_view { height: 60px;  background-image: url('./static/bigdata/warn_top.png'); background-repeat: no-repeat; background-position: center center;
            font-size: 14px;
            color: #ffffff;
            font-weight: bolder;
            cursor: default;
            position: relative;

            &::before {
                content: '';
                width: 173px;
                height: 75px;
                background: url('./static/bigdata/bottom_line.png') no-repeat;
                position: absolute;
                top: 7px;
            }

            .time {
                width: 111px;
                height: 36px;
                background: url('./static/bigdata/sel_time.png') 0 0 / 100% 100% no-repeat;
            }

            .line {
                height: 1px;
                background: #00f5f7;
            }

            .ico {
                margin-right: 3px;
            }

            .title {
                display: inline-block;
                position: relative;
            }

            .block {
                position: absolute;
                width: 278px;
                height: 36px;
                left: 50%;
                top: 50%;
                transform: translate(-50%,-50%);
            }
            }
        }

        .el-range-editor {
            background: transparent;
            border: none;
            width: 273px !important;
            padding: 0 !important;

            ::v-deep.el-input__icon {
                display: none;
            }

            //::v-deep.el-input__inner{ padding: 0 !important; }
            ::v-deep.el-range-input {
                background: transparent;
                width: 130px;
                color: #fff;
                text-align: left;
                padding-left: 28px;
            }

            ::v-deep.el-range-separator {
                color: #00f5f7;
                width: 20px;
                padding: 0;
            }
        }
    }
}

.bigdata_body {
    .rotate-180 {
        transform: rotate(90deg);
    }

    //.index_left { width:485px;}
    // .index_right { width:485px;}
    .box {
        margin: 8px;
        position: relative;

        //> .light { width:416px; height:23px; background:resolve('bigdata/box_bottom_light.png') no-repeat; position:absolute; left:50%; transform:translate(-50%,0); bottom:-10px;}
        .hd {
            font-size: 14px;
            color: #ffffff;
            font-weight: bolder;
            cursor: default;
            position: relative;
            //background:resolve('bigdata/box_titlebg.png') 0 0 / 100% 100% no-repeat; margin-bottom:8px;
            background: url('./static/bigdata/box_titlebg.png') 0 0 / 100% 100% no-repeat;
            margin-bottom: 8px;

            &::before {
                content: '';
                width: 173px;
                height: 75px;
                background: url('./static/bigdata/bottom_line.png') no-repeat;
                position: absolute;
                top: 7px;
            }

            .time {
                width: 111px;
                height: 36px;
                background: url('./static/bigdata/sel_time.png') 0 0 / 100% 100% no-repeat;
            }

            .line {
                height: 1px;
                background: #00f5f7;
            }

            .ico {
                margin-right: 3px;
            }

            .title {
                display: inline-block;
                position: relative;
            }

            .block {
                position: absolute;
                width: 278px;
                height: 36px;
                right: 35px;
                top: 6px;
            }
        }

        .bd {
            height: 100%;
            color: #ffffff;
            font-size: 16px;
            background: linear-gradient(0deg, rgba(46, 64, 157, .4), rgba(46, 64, 157, 0));
            position: relative;
            top: 0px;

            &::before,
            &::after {
                content: '';
                display: block;
                width: 1px;
                height: 151px;
                background: url('./static/bigdata/box_line.png') no-repeat;
                position: absolute;
                top: 50%;
                transform: translate(0, -75px);
            }

            &::before {
                left: 0;
            }

            &::after {
                right: 0;
            }
        }

        &.detailBox {
            >.hd {
                padding: 0 15px;

                .title {
                    &::after {
                        display: none;
                    }
                }
            }
        }
    }
}

.today_item {
    margin: 10px 20px;
    font-size: 14px;

}

.four {
    background: linear-gradient(to right, rgb(20, 112, 214, 0.3), rgb(20, 46, 121, 0.4));
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
    position: relative;

    .four_item {
        width: 100%;
        height: 100%;
        font-size: 24px;
        font-weight: bold;

        &::before,
        &::after {
            content: '';
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgb(20, 112, 214);
        }

        &::before {
            top: 0;
            left: 0;
        }

        &::after {
            bottom: 0;
            right: 0;
        }
    }

    &::before,
    &::after {
        content: '';
        position: absolute;
        width: 4px;
        height: 4px;
        background: rgb(20, 112, 214);
    }

    &::before {
        top: 0;
        right: 0;
    }

    &::after {
        bottom: 0;
        left: 0;
    }
}

.ck {
    padding: 0 20px;
    height: 45vh;
    .ck_top {
        background: url('./static/bigdata/num_bg.png') 0 bottom / 100% auto no-repeat;
        height: 60px;
        position: relative;
            .time {
                width: 111px;
                height: 36px;
                background: url('./static/bigdata/sel_time.png') 0 0 / 100% 100% no-repeat;
            }

            .line {
                height: 1px;
                background: #00f5f7;
            }

            .ico {
                margin-right: 3px;
            }

            .title {
                display: inline-block;
                position: relative;
            }

            .block {
                position: absolute;
                width: 278px;
                height: 36px;
                left: 50%;
                top: 50%;
                transform: translate(-50%,-50%);
            }
        .ck_img {
            width: 63px;
            height: 18px;
        }

        .ck_num {
            font-size: 24px;
            font-weight: bold;
        }
    }

    .ck_content {
        padding: 10px 0;
        font-size: 16px;
        font-weight: bold;
        color: #f9f60e;

        //.ck_bg1 { background: url('./static/bigdata/bg_total.png') 0 0 / 100% auto no-repeat; width: 100%; min-height: 120px; }
        .ck_bg1 {
            position: relative;

            .img_num {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }
}

.zq_content {
    padding: 10px 20px;
    ::v-deep.el-progress__text { color:#f9f60e; font-size: 24px !important; }
    .zq_list {
        padding-left: 30px;
        margin-top: 20px;
        .zq_item {
            .look_num {
                background: url('./static/bigdata/look_bg.png') 0 bottom / 100% 100% no-repeat;
                height: 48px;
                width: 98px;
                font-size: 20px;
                font-weight: bold;
                color: #f9f60e;
            }
        }
    }
}

.warn_list {
    padding: 0 20px;
    max-height: 400px;
    overflow-x: hidden;
    margin-right: -50px;
    /* Maximum width of scrollbar */
    padding-right: 50px;
    /* Maximum width of scrollbar */
    overflow-y: scroll;

    .warn_item {
        padding: 15px;

        .warn_title {
            font-size: 14px;
            padding-bottom: 15px;
        }

        .warn_des,
        .warn_time {
            font-size: 12px;
        }

        .warn_state {
            width: 50px;
            height: 18px;
            line-height: 18px;
            text-align: center;
            color: #fff;
            font-size: 12px;
            background: #cfa72f;
            border-radius: 4px;
            margin-top: 10px;
        }
    }
}

#lintChart {
    ::v-deep div {
        bottom: -20px;
    }
}
.sd_map { height: 100%;}
.info { background-image: url('./static/bigdata/info_bg.png'); background-repeat: no-repeat; background-position: 0 bottom;height:210px;
    .info_content { height: 260px; width: 100%; background-image: url('./static/bigdata/floor.png'); background-repeat: no-repeat; background-position: 90% bottom;
        padding-left: 100px; padding-top: 40px;
        .status, .dl { font-size: 16px;  }
        .status {padding-bottom: 35px; color: #11ff97; }
        .dl { padding-bottom: 33px;color: #cfa72f; }
    }
    .info_title { padding-top: 25px; padding-left: 65px; font-size: 18px; font-weight: bold; background: linear-gradient(to bottom, #3ce1ff, #fff);
        -webkit-background-clip: text;
        /*将设置的背景颜色限制在文字中*/
        -webkit-text-fill-color: transparent; }
}
.circle_line { padding: 40px 20px;
    .mid_line {height: 3px; background: linear-gradient(to right, #3256c6, transparent); }
}
.two_bg { width: 166px; height: 176px; font-size: 36px; color: #cfa72f; font-weight: bold;
}
.warn_bg {  background-image: url('./static/bigdata/warn_num.png'); background-repeat: no-repeat; background-position: left bottom; background-size: 100% auto; }
.relook_bg {  background-image: url('./static/bigdata/relook_num.png'); background-repeat: no-repeat; background-position: left bottom; background-size: 100% auto; }
.warn_content { padding:10px 20px; height: calc(100vh - 300px);
    ::v-deep.el-pagination__total { color: #fff; }
    ::v-deep.el-pagination__jump { color: #fff; display: none; }
    ::v-deep.btn-prev { background:linear-gradient(to right, #3256c6, transparent) !important;border: 1px solid #3256c6; border-radius: 3px; }
    ::v-deep.btn-next { background:linear-gradient(to right, #3256c6, transparent) !important;border: 1px solid #3256c6; border-radius: 3px; }

    ::v-deep .el-pager{
        li{
            background:linear-gradient(to right, #3256c6, transparent) !important;border: 1px solid #3256c6; border-radius: 3px;
         }
        .active{
            background: transparent !important; border-color: #fff;
        }
    }
    .warning_list {
        max-height: 100%;
    overflow-x: hidden;
    /* 隐藏y轴滚动条 */
    margin-right: -50px;
    /* Maximum width of scrollbar */
    padding-right: 50px;
    /* Maximum width of scrollbar */
    overflow-y: scroll;
        .warning_every {
            border: 1px solid #77b6b6;
            background: linear-gradient(to right, rgb(119, 182, 182, 0.2), transparent);
            position: relative;
            margin-bottom: 5px;
            &::before,
                &::after {
                    content: '';
                    position: absolute;
                    width: 6px;
                    height: 6px;
                    background: rgb(20, 112, 214);
                }
                &::before {
                    top: 0;
                    right: 0;
                }

                &::after {
                    bottom: 0;
                    left: 0;
                }
            .warning_item {
                background-image: url('./static/bigdata/book_right.png'); background-repeat: no-repeat; background-position: right top;
                &::before,
                &::after {
                    content: '';
                    position: absolute;
                    width: 6px;
                    height: 6px;
                    background: rgb(20, 112, 214);
                }
                &::before {
                    top: 0;
                    left: 0;
                }

                &::after {
                    bottom: 0;
                    right: 0;
                }
                .title { font-size: 16px; font-weight: 400; }
                .des, .time { font-size: 14px; font-weight: 200; }
                .status { border-radius: 4px; padding: 5px 15px; background: #15bb8a;font-size: 14px; margin-top: 20px; }
            }
        }
    }
}
.ck_list { padding: 10px 20px;     height: calc(100% - 130px);
    overflow-x: hidden;
    /* 隐藏y轴滚动条 */
    margin-right: -50px;
    /* Maximum width of scrollbar */
    padding-right: 50px;
    /* Maximum width of scrollbar */
    overflow-y: scroll;
    .ck_item { padding: 10px; background: linear-gradient(to right, rgb(119, 182, 182, 0.2), transparent);  margin-bottom: 10px;
        .look {
            cursor: pointer; font-size:14px; color:#23d7ff;
        }
        .time { font-size: 14px; font-style: oblique; }
    }
}
.ck {
    ::v-deep.pagination-container { padding: 16px; }
    ::v-deep.el-pagination__total { color: #fff; }
    ::v-deep.el-pagination__jump { color: #fff; display: none; }
    ::v-deep.btn-prev { background:linear-gradient(to right, #3256c6, transparent) !important;border: 1px solid #3256c6; border-radius: 3px; }
    ::v-deep.btn-next { background:linear-gradient(to right, #3256c6, transparent) !important;border: 1px solid #3256c6; border-radius: 3px; }

    ::v-deep .el-pager{
        li{
            background:linear-gradient(to right, #3256c6, transparent) !important;border: 1px solid #3256c6; border-radius: 3px;
         }
        .active{
            background: transparent !important; border-color: #fff;
        }
    }
}
.comDialog{
    ::v-deep.el-dialog__header { display: none; }
    ::v-deep .el-dialog{ background: transparent;
        .content { border-radius: 3px;background: rgb(50, 86, 198,1);  border: 1px solid rgb(50, 86, 198);
            .header { padding: 10px 0;border-bottom:1px solid #ffffff;
                .title { font-size: 24px; color: #ffffff;
                    &::before { content: ''; width: 4px; height: 19px; background:#ffffff; display: inline-block; margin-right: 10px ; }
                }
            }
            .body { padding: 20px;
                .b_content { color: #ffffff; padding-bottom: 20px;
                    .item { padding-bottom: 10px }
                    .name { font-size: 18px; font-weight: bold; }
                }
                .dialog-footer { width: 80%; }
            }
            &::before {
                content: '';
                display: block;
                width: 412px;
                height: 29px;
                background: url('./static/bigdata/line_top.png') no-repeat;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
            };
            &::after {
                content: '';
                display: block;
                width: 412px;
                height: 29px;
                background: url('./static/bigdata/line_bott.png') no-repeat;
                position: absolute;
                left: 50%;
                transform: translate(-50%,-100%);
            }
        }
    }
}
</style>
